-
Notifications
You must be signed in to change notification settings - Fork 11
fix: provide database connection options to fx container for circuit breaker #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The circuit breaker storage module requires *bunconnect.ConnectionOptions to create its database connection, but this dependency was not available in the fx container. Changed from fx.Provide to fx.Supply to directly inject the existing connectionOptions instance.
|
Cursor Agent can help with this pull request. Just |
WalkthroughModifies the Fx dependency injection wiring in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🔇 Additional comments (2)
Comment |
fguery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're sure it's not used elsewhere? It's not exactly the same so I prefer asking :)
Fix: Provide
*bunconnect.ConnectionOptionsto the fx container for the Circuit Breaker module.The Circuit Breaker storage module required
*bunconnect.ConnectionOptionsas an fx dependency, but it was not being supplied, causing a dependency injection failure. This change usesfx.Supplyto directly provide the existingconnectionOptionsinstance to the fx container.